import { defineStore } from 'pinia';

const useUserStore = defineStore('user', {
    state: () => ({
        loginStatus: false,
        userInfo: null,
        token: null
    }),
    persist: {
        enabled: true,
        strategies: [
            { key: 'user', storage: localStorage },
        ],
    },
});

export default useUserStore;